import Layout from '@/views/layout/Layout'

const route = {
  path: '/product',
  redirect: '/product/list',
  component: Layout,
  alwaysShow: false,
  hidden: false,
  meta: {
    title: '产品管理',
    icon: 'nested'
  },
  children: [
    {
      path: 'edit/:id',
      props: true,
      component: () => import('@/views/product/edit'),
      name: 'ProductEdit',
      hidden: true,
      meta: { title: '产品修改' }
    },
    {
      path: 'add',
      component: () => import('@/views/product/add'),
      name: 'ProductAdd',
      hidden: true,
      meta: { title: '产品添加' }
    },
    {
      path: 'page',
      component: () => import('@/views/product/list'),
      name: 'ProductPage',
      hidden: false,
      meta: { title: '产品列表' }
    }
  ]
}

export default route
